# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>

pkgname=sigrok-firmware-fx2lafw
pkgver=0.1.7
pkgrel=1
pkgdesc='Firmware for FX2 logic analyzers'
arch=('any')
url='http://sigrok.org/wiki/Fx2lafw'
license=('GPL2' 'LGPL2.1')
makedepends=('sdcc')
source=("http://sigrok.org/download/source/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('e9973980b07cef395637476c6294473e349770be24afe6b03d284bf3057f6b32fe686e25f3baa180b96455397db43e16f191a9feb07bf46e097170fb4d326f8e')

build(){
    cd $pkgname-$pkgver

    autoreconf -vif

    ./configure --prefix=/usr

    make
}

package(){
  cd $pkgname-$pkgver

  make DESTDIR="$pkgdir" install
}
